#ifndef __M_ARCHIVE_DRIVERS_H__
#define __M_ARCHIVE_DRIVERS_H__

typedef struct
{
    char *extension;
    int (*openRom)(const char *archive_path, uint32_t *crc, char *name);
    int (*closeRom)();
    int (*extractRomMemory)(void **buf, size_t *size);
    int (*extractRom)(const char *extract_path);
} ArchiveRomDriver;

ArchiveRomDriver *Archive_GetDriver(const char *ext);

#endif
